package com.guigu.community.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;
@Data
@TableName("Inventory")
public class Inventory {

    @TableId(type = IdType.AUTO)
    @TableField("inventory_id")
    private Integer inventoryId;

    @TableField("product_id")
    private Integer productId;

    @TableField("warehouse_id")
    private Integer warehouseId;

    @TableField(value = "quantity", insertStrategy = FieldStrategy.DEFAULT)
    private Integer quantity=0;// 设置默认值为0

    @TableField("created_at")
    private Date createdAt;

    @TableField("updated_at")
    private Date updatedAt;


}